Skip to content

Annotate ReasonCode.names to MappingProxyType | dict#924

Merged
PierreF merged 1 commit into
eclipse-paho:masterfrom
JamesParrott:Fix_mypy_error_in_workflow
Jun 24, 2026
Merged

Annotate ReasonCode.names to MappingProxyType | dict#924
PierreF merged 1 commit into
eclipse-paho:masterfrom
JamesParrott:Fix_mypy_error_in_workflow

Conversation

@JamesParrott

Copy link
Copy Markdown
Contributor

Annotate ReasonCode.names to MappingProxyType | dict

Annotate ReasonCode.names to MappingProxyType | dict
@JamesParrott

Copy link
Copy Markdown
Contributor Author

Fixes lint error in Master from mypy: https://github.com/eclipse-paho/paho.mqtt.python/actions/runs/27639807456/job/81736542200

src/paho/mqtt/reasoncodes.py:122: error: Incompatible types in assignment (expression has type "dict[int, dict[str, list[int]]]", variable has type "MappingProxyType[int, dict[str, list[int]]]")  [assignment]
Found 1 error in 1 file (checked 11 source files)
lint: exit 1 (4.71 seconds) /home/runner/work/paho.mqtt.python/paho.mqtt.python> mypy src pid=3128

@PierreF PierreF merged commit 73d2cae into eclipse-paho:master Jun 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants